package com.oa.bean.work;

import java.util.Date;
import java.util.Set;
//加班申请表
public class Overtime {
	private int oid;//加班申请编号
	private int eid;//员工编号
	private Date ostart;//开始时间
	private Date oend;//结束时间
	private String oreason;//加班原因
	private int ostatus;//审批状态
	
	private Set<Emp> emps;// 同一时间多个员工申请加班
	
	public Overtime() {}

	public Overtime(int oid, int eid, Date ostart, Date oend, String oreason, int ostatus) {
		super();
		this.oid = oid;
		this.eid = eid;
		this.ostart = ostart;
		this.oend = oend;
		this.oreason = oreason;
		this.ostatus = ostatus;
	}
	
	public int getOid() {
		return oid;
	}

	public void setOid(int oid) {
		this.oid = oid;
	}

	public int getEid() {
		return eid;
	}

	public void setEid(int eid) {
		this.eid = eid;
	}

	public Date getOstart() {
		return ostart;
	}

	public void setOstart(Date ostart) {
		this.ostart = ostart;
	}

	public Date getOend() {
		return oend;
	}

	public void setOend(Date oend) {
		this.oend = oend;
	}

	public String getOreason() {
		return oreason;
	}

	public void setOreason(String oreason) {
		this.oreason = oreason;
	}

	public int getOstatus() {
		return ostatus;
	}

	public void setOstatus(int ostatus) {
		this.ostatus = ostatus;
	}

	public Set<Emp> getEmps() {
		return emps;
	}

	public void setEmps(Set<Emp> emps) {
		this.emps = emps;
	}

	@Override
	public String toString() {
		return "Overtime [oid=" + oid + ", eid=" + eid + ", ostart=" + ostart + ", oend=" + oend + ", oreason="
				+ oreason + ", ostatus=" + ostatus + "]";
	}

}
